//
//  SelectMenuCell.h
//  BaseProject
//
//  Created by 王洋 on 2020/7/30.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonMenuModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, SelectMenuCellActionType) {
    //选中
    SelectMenuCellActionType_sel =0,
    //减少
    SelectMenuCellActionType_cut =1,
    //增加
    SelectMenuCellActionType_add =2
};

@interface SelectMenuCell : UITableViewCell <UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UIImageView *mainImageView;

@property (weak, nonatomic) IBOutlet UILabel *mainTitleLab;

@property (weak, nonatomic) IBOutlet UILabel *subTitleLab;

@property (weak, nonatomic) IBOutlet UILabel *priceLab;


@property (weak, nonatomic) IBOutlet UIButton *selBtn;


@property (weak, nonatomic) IBOutlet UITextField *countTF;



@property (nonatomic, copy) void(^SelectMenuCellBlock)(SelectMenuCellActionType type);

@property (nonatomic, copy) void(^textFieldShouldEndEditingBlock)(UITextField *textField);

- (void)fillCellWithModel:(CommonMenuModel *)model;


@end

NS_ASSUME_NONNULL_END
